how to use the printf function to display output